package com.gitee.base.modules.core.service.impl;

import com.gitee.base.modules.core.dao.SysUserLoginLogMapper;
import com.gitee.base.modules.core.model.SysUserLoginLog;
import com.gitee.base.modules.core.service.ISysUserLoginLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Service("sysUserLoginLogService")
public class SysUserLoginLogServiceImpl extends ServiceImpl<SysUserLoginLogMapper, SysUserLoginLog> implements ISysUserLoginLogService {

    @Override
    public List<Map<String, Object>> countUserLoginLogByDateList(List<String> dateList) {
        return this.baseMapper.countUserLoginLogByDateList(dateList);
    }

    @Override
    public List<Map<String, Object>> countUserLoginOsByDateRange(LocalDateTime start, LocalDateTime end) {
        return this.baseMapper.countUserLoginOsByDateRange(start,end);
    }

    @Override
    public List<Map<String, Object>> countUserLoginBrowerByDateRange(LocalDateTime start, LocalDateTime end) {
        return this.baseMapper.countUserLoginBrowerByDateRange(start,end);
    }
}
